#ifndef HTTPRESPONSE_H
#define HTTPRESPONSE_H

#include "messageheader.h"

#include <string>
using std::string;

class HTTPResponse
{

public:
    HTTPResponse(bool success):
        m_success(success)
    {

    }
    bool isSuccess() {
        return m_success;
    }
    const string& getResponseBytes() {
        return m_responseBytes;
    }
    bool parseFromfd(int sockfd);
private:
    bool m_success;
    int m_status;
    MessageHeader m_headers;
    string m_responseBytes;
};

#endif
